package mest.service.hws.impl;

import mest.dao.hws.BomSaveManytomanyDao;
import mest.entity.bomsave_manytomany;
import mest.entity.plan_productjob_saleout;
import mest.entity.plan_productjob_takematerial;
import mest.service.hws.BomSaveManytomanyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class BomSaveManytomanyServiceImpl implements BomSaveManytomanyService {

    @Resource
    private BomSaveManytomanyDao bomSaveManytomanyDao;

    @Override
    public int deleteByPrimaryKey(String theirDb,Integer id) {
        return bomSaveManytomanyDao.deleteByPrimaryKey(theirDb,id);
    }

    @Override
    public int insert(String theirDb,List<bomsave_manytomany> bomSaveManytomany) {
        return bomSaveManytomanyDao.insert(theirDb,bomSaveManytomany);
    }

    @Override
    public int insertSelective(String theirDb,bomsave_manytomany record) {
        return bomSaveManytomanyDao.insertSelective(theirDb,record);
    }

    @Override
    public List<bomsave_manytomany> selectByPrimaryKey(String theirDb,Integer id) {
        return bomSaveManytomanyDao.selectByPrimaryKey(theirDb,id);
    }

    @Override
    public int selectPrimarycount(String theirDb,Integer id) {
        return bomSaveManytomanyDao.selectPrimarycount(theirDb,id);
    }

    @Override
    public int updateByPrimaryKeySelective(String theirDb,bomsave_manytomany record) {
        return bomSaveManytomanyDao.updateByPrimaryKeySelective(theirDb,record);
    }

    @Override
    public int updateByPrimaryKey(String theirDb,bomsave_manytomany record) {
        return bomSaveManytomanyDao.updateByPrimaryKey(theirDb,record);
    }

    @Override
    public List<Map> selectAllModel(String theirDb,Integer poId) {
        return bomSaveManytomanyDao.selectAllModel(theirDb,poId);
    }

    @Override
    public List<plan_productjob_saleout> selectAllModel2_saleout(String theirDb,Integer poId) {
        return bomSaveManytomanyDao.selectAllModel2_saleout(theirDb,poId);
    }

    @Override
    public List<plan_productjob_takematerial> selectAllModel3_takeMaterial(String theirDb ,Integer poId) {
        return bomSaveManytomanyDao.selectAllModel3_takeMaterial(theirDb,poId);
    }


}

